package com.vitria.installer.manager;

import com.vitria.installer.node.InstallNodeMXBean;

public class Main {

    public static void main(String[] args) throws Exception {
        
        String host = args[0];
        int port = Integer.parseInt(args[1]);
        
        InstallNodeMXBean mxbeanproxy = InstallManager.getInstallNodeMXBean(host, port);
        
        System.out.println("Install on remote host: " + host);
        mxbeanproxy.install();
        
        System.out.println("\nUninstall on remote host: " + host);
        mxbeanproxy.uninstall();
        
        System.out.println("\nDone! Bye!");
    }
}
